package com.CMS.server;

import java.util.List;

import com.CMS.client.LanguageService;
import com.CMS.server.dao.LanguageDao;
import com.CMS.server.domain.Language;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;

public class RpcLanguage extends RemoteServiceServlet implements LanguageService{

	private static final long serialVersionUID = 1L;

	@Override
	public Language getActiveLanguage() {
		LanguageDao dao = new LanguageDao();
		return dao.getLanguageActive();
	}

	@Override
	public List<Language> getAll() {
		LanguageDao dao = new LanguageDao();
		return dao.getAll();
	}

}
